package dbc;

public class StringUtils {

    public static String concatNonEmpty(String delimiter, String... strings) {
        String result = "";

        for(String str : strings) {
            if(!str.isEmpty()) {
                if(!result.isEmpty()) {
                    result += delimiter;
                }

                result += str;
            }
        }

        return result;
    }

}
